﻿using SmartWMS.Common.ResponseOutput;
using SmartWMS.Domain.Base;
using SmartWMS.Domain.BasicsDatum;
using SmartWMS.Server.BasicsDatumServer.CategoryService.Dto;
using SmartWMS.Server.BasicsDatumServer.LocationServer.Dto;
using SmartWMS.Server.SystemSets.StaffServices.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Server.BasicsDatumServer.ProductService
{

    /// <summary>
    /// 产品类别
    /// </summary>
    public interface ICategoryService : ITransientServer
    {
        /// <summary>
        /// 产品类别列表分页
        /// </summary>
        /// <returns></returns>
        Task<Response<List<CategoryInput>>> CategoryListAsync(Select input);

        /// <summary>
        /// 产品类别列表
        /// </summary>
        /// <returns></returns>
        Task<Response<List<CategoryInput>>> CategoryList();

        /// <summary>
        /// 产品类别添加
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        Task<Response<bool>> AddCategory(CategoryInput input);

        /// <summary>
        /// 根据产品类别ID获取产品类别信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Response<Category>> GetCategoryById(KeyEntity id);

        /// <summary>
        /// 产品类别修改
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        Task<Response<bool>> UpdateCategory(CategoryInput dto);

        /// <summary>
        /// 产品类别删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        Task<Response<bool>> DeleteCategory(CategoryInput input);

        /// <summary>
        /// 产品类别批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<Response<bool>> DeleteCategoryList(CategoryInput dto);

    }
}
